package com.example.demo.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


/**
 * @author 张露晨
 * @date 2017/9/27 10:08.
 */
@Component
@PropertySource("classpath:test2.properties")
@Data
public class ConfigTestBean2 {

    @Value("${name}")
    private String name;

    @Value("${want}")
    private String want;

    @Value("${todo}")
    private String todo;

}
